package pacoteTeste;

public class AtualizadorDeContas {
	private double saldoTotal = 0;
	private double selic;
	private double saldoFinal;
	
	public AtualizadorDeContas(double selic){
		this.selic = selic;
	}
	
	public void roda(Conta c) {
		System.out.println("saldo anterior: " + c.getSaldo());
		c.atualiza(selic);
		saldoFinal = c.getSaldo() + saldoTotal;
		System.out.println("saldo final: " + this.saldoFinal);
	}
	
	public double getSaldoTotal(){
		return this.saldoTotal;
	}
}
